{% extends 'base/base.html' %}


{% block css %}
<style>
.head{
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: url("/media/{{ request.user.head }}") no-repeat center;
    background-size: contain;
}

</style>
{% endblock %}


{% block js %}


{% endblock %}

{% block main %}

    <h1>个人中心</h1>

    <ul class="list-group">
      <li class="list-group-item"> 用户名: {{ request.user.username}}</li>
      <li class="list-group-item"> 头像:
          <div class="head"></div>
      </li><li class="list-group-item"> 注册时间： {{ request.user.date_joined }}</li>
      <li class="list-group-item"> 上次登录时间： {{ request.user.last_login }}</li>


    </ul>

{% endblock %}